public class Test {

    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();
        binaryTree.inOrder(root);
        System.out.println();
        System.out.println(binaryTree.getLeafNodeCount(root));
        System.out.println("第K层结点：" + binaryTree.getKLevelNodeCount(root,3));
        System.out.println(binaryTree.getHeight(root));
        System.out.println("层次遍历 ");
        binaryTree.levelOrder(root);
        System.out.println();
        System.out.println ();
//        boolean completeTree = binaryTree.isCompleteTree2(root);
//        System.out.println(completeTree);

        binaryTree.inOrder(root);
        System.out.println();
        binaryTree.inOrderNor(root);
    }
}
